package com.dai.smalldemo.service;

import com.dai.smalldemo.common.Result;
import com.dai.smalldemo.model.entity.ToEmail;
import org.springframework.stereotype.Service;

import java.io.IOException;

/**
 * Created with IntelliJ IDEA.
 *
 * @author： dkl
 * @date： 2023/12/31
 * @description：
 */
public interface EmailService {
    /**
     * 发送邮件
     * @param toEmail
     */
    Result sendEmail(ToEmail toEmail);

    Result sendHtmlEmail(ToEmail toEmail) throws IOException;
}
